<div data-role="content" data-scroll="y" data-height="100%" data-theme="a">
<div data-iscroll="scroller">
<?php if(isset($rows)) :?>

<ul data-role="listview" data-filter="true" data-inset="true">
<li data-role="list-divider" data-theme="a">My Friends</li>
	<?php foreach($rows as $friend): if ($friend->isvalid):?>

	
	<li data-icon="false" style="height:10%;">
		<a data-rel="dialog" href="<?=site_url('user_controller/show_user_profile');?>?userID=<?=$friend->userid?>">	
		<!--
		<img src="<?=base_url('themes/resources/me.png');?>" style="margin:3%; align:left;" />
		-->
		<b><?=$friend->fullname?></b> 
		<p class="ui-li-aside"> <?=$friend->location;?> </p>
    
    </a>
    </li>
    
   

<?php endif; endforeach;?>

</ul>



<?php else :?>
<!--<?php echo 'There is no hello now!';?>-->
<h4>You don't have friends now!</h4>
<?php endif; ?>

</div>
</div>